package com.atguigu.zuoye2;
import java.util.Scanner;
/**
 * @Description: 第六题
 * @Author: Hank
 * @Date: 2025/2/11 17:49
 */

public class GetArea {
    public static void main(String[] args) {
        Scanner scan = new Scanner(System.in);
        Shape[] shape = new Shape[2];
        shape[0] = new Circle(5L);
        shape[1] = new Rectangle(4L,2L);

        for (int i = 0 ; i < shape.length ; i++ ){
            System.out.println(shape[i].getArea());
        }
    }
}
